package com.lipiao.traveltreasure.service.impl.restaurant;

import com.lipiao.traveltreasure.bean.restaurantBean.Food;
import com.lipiao.traveltreasure.dao.restaurant.AdminMapper;
import com.lipiao.traveltreasure.service.restaurant.AdminService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class AdminServiceImpl implements AdminService {

    //注入Mapper接口对象
    @Resource
    private AdminMapper adminMapper;

    @Override
    public int addFood(Food food) {
        return adminMapper.insertFood(food);
    }
}
